<?
session_name('NZSession');
session_start();

include('data/v_global.inc.php');
include('data/f_db.inc.php');
include('data/f_global.inc.php');

  if ($_SESSION['logged'] & $_SESSION['rights'] & ($r_webmaster | $r_comittee)) {

      if ($res = mq("SELECT OID,Office FROM officers o ORDER BY Office")) {
         echo '<html>
                <head><title>Available Offices</title>
                <link rel="stylesheet" type="text/css" href="css/main.php">
                </head>
                <body class="inhalt" onLoad="window.resizeTo(535,'.(180+40*mysql_num_rows($res)).')">
                <div class="box b">'.$blue_imgset;
                $content = 'Here are all the Tags you can enter in text areas to automatically refer to the
                officers details:<br>
                <br>
                <table cellpadding="2">';
         while ($data = mysql_fetch_array($res)) {
            $content .= '<tr><td>'.$data[1].':</td><td>///office:'.$data[0].'///</td></tr>';
         }
            $content .= '</table>
            So if one wants to refer to an officer within e.g. a dashboard entry, simply use<br>
            &quot;...blah blah some text ///office:<nr>/// more text ... blah&quot;';
         
         echo hb_box('Officers',$content).'
                </div></body></html>';
      }
  }
?>